﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DiaosFix.Core
{
    public static class UsersExtension
    {
        public static bool IsInRole(this Users user, PubConstant.UserTypes userType)
        {
            UsersOperator uo = new UsersOperator();
            return uo.IsInRole(user.Username, userType);
        }
    }
}
